define(['common/js/service/boss-common-service-0.1'],
function() {
	serviceModule.factory("StateCommonService", function ($window, $http, $q, CommonRestService) {
		return {
			getProjectStyles: function (requestParams){
				return CommonRestService.query("/common/state/getProjectStyles", requestParams);
			},
			getProjectStates: function (requestParams) {
				return CommonRestService.query("/common/state/getProjectStates", requestParams);
			},
			getProjectTypes: function (requestParams) {
                return CommonRestService.query("/common/state/findProjectTypes",requestParams);
            },
			getShowStates: function (requestParams) {
				return CommonRestService.query("/common/state/getShowStates", requestParams);
			},
			getOwnerStates: function (requestParams) {
				return CommonRestService.query("/common/state/getOwnerStates", requestParams);
			},
			getEventStates: function (requestParams) {
				return CommonRestService.query("/common/state/getEventStates", requestParams);
			},
			getTicketTypes: function (requestParams) {
				return CommonRestService.query("/common/state/getTicketTypes", requestParams);
			},
			getTicketMediators: function (requestParams) {
				return CommonRestService.query("/common/state/getTicketMediators", requestParams);
			},
			/***
			 * 查询订单类型
			 */
			getDiscountTypeSelect:function(requestParams){
				return CommonRestService.query('/common/state/getDiscountTypeSelect',requestParams);
			},
			
			/**
			 * 查询优惠规则类型
			 */
			getDiscountRuleSelect:function(requestParams){
				return CommonRestService.query('/common/state/getDiscountRuleSelect',requestParams);
			},
			
			/***
			 * 查询优惠状态信息
			 */
			getDiscountStateSelect:function(requestParams){
				return CommonRestService.query('/common/state/getDiscountStateSelect',requestParams);
			},
			
			/***
			 * 查询角色信息
			 */
			findRoleSelect:function(requestParams){
				return CommonRestService.query('/common/state/findRoleSelect',requestParams);
			},
			
			/***
			 * 查询用户信息
			 */
			findUserByRoleId:function(requestParams){
				return CommonRestService.query('/common/state/findUserByRoleId',requestParams);
			},
			
			/***
			 * 查询所有用户信息
			 */
			findAllUser:function(requestParams){
				return CommonRestService.query('/common/state/findAllUser',requestParams);
			},
			
			/***
			 * 查询所有的会员信息
			 */
			findDiscountCustomers:function(requestParams){
				return CommonRestService.query('/common/state/findDiscountCustomers',requestParams);
			},
			/**
			 * 
			 */
			getFreeCustom:function(requestParams){
				return CommonRestService.query('/common/state/getFreeCustom',requestParams);
			},
			/**
			 * 获取配置信息
			 */
			findConfigValue:function(requestParams){
				return CommonRestService.query('/common/state/findConfigValue',requestParams);
			}
		};
	});
});